package ann;

public class Edge{
	public Edge(int from, int to) {
		this.from = from;
		this.to = to;
	}
	public int from;
	public int to;
	
	public boolean equals(Object obj){
		if(obj==null)
			return false;
		Edge edge = (Edge)obj;
		return edge.from == from && edge.to == to;
	}
	public int hashCode(){
		return from*10000 + to;
	}
}